# -*- coding: utf-8 -*-
import csv
import re
from apps.news.models import Record
from django.core.management.base import BaseCommand

class Command(BaseCommand):
    def handle(self, *args, **options):
        records = Record.objects.filter(status=Record.STATUS_PUBLISHED)
        for record in records:
            if len(record.meta_description) < 10:
                # add new description
                pass